<div class="modal fade bs-example-modal-lg" tabindex="-1" aria-labelledby="resend_dialog_title"
     id="resend-detail-modal" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <a href="javascript:void(0);" title="关闭" class="close" data-dismiss="modal">×</a>
                <h4 class="modal-title">
                    重发信息
                </h4>
            </div>
            <div class="modal-body">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <form class="form-horizontal" role="form" id="resend_form"
                              action="javascript:void(0);" method="post">
                            <div class="form-group">
                                <label for="bizOrderId" class="col-sm-2 control-label">订单ID</label>

                                <div class="col-sm-10">
                                    <input type="text" id="bizOrderId" name="bizOrderId" class="form-control"
                                           placeholder="订单ID" readonly="readonly" value="${data.bizOrderId}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="bizOrderId" class="col-sm-2 control-label">商品信息</label>

                                <div class="col-sm-10">
                                    <table data-toggle="table" width="100%">
                                        <tbody>
                                        {@each data.items as order}
                                        <tr class="tr-class-5">
                                            <td class="td-class-5">
                                                <span class="commodity-img">
                                                    <img src="http://imgsize.52shangou.com/img/${order.itemPicUrl}.600*600.jpg@1e_100w_100h_1c_0i_1o_90Q_1x.jpg">
                                                </span>
                                            </td>
                                            <td width="15%">
                                                ${order.itemName}
                                                {@if order.type == 2}
                                                <span class="label label-danger">赠品</span>
                                                {@/if}
                                            </td>
                                            <td width="15%">商品id: ${order.itemId}</td>
                                            <td width="15%">(${order.unit|empty} X ${order.buyAmount})</td>
                                            <td width="15%">${(order.totalPrice/100).toFixed(2)}元</td>
                                            <td width="10%">

                                                <select id="items_${order.itemId}" name="items_${order.itemId}"
                                                        data-temId="${order.itemId}" class="form-control">
                                                    {@each i in range(0, order.buyAmount + 1)}
                                                    <option value="${i}">${i}</option>
                                                    {@/each}
                                                </select>

                                            </td>
                                        </tr>
                                        {@/each}
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="districtName" class="col-sm-2 control-label">区域</label>

                                <div class="col-sm-10">
                                    <select class="form-control" id="districtName" name="districtName"></select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="buyerAddress" class="col-sm-2 control-label">收货地址</label>

                                <div class="col-sm-10">
                                    <input type="text" id="buyerAddress" name="buyerAddress" class="form-control"
                                           placeholder="收货地址"
                                           required
                                           data-bv-notempty-message="收货地址" value="${data.buyerAddress}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="buyerNick" class="col-sm-2 control-label">收货人</label>

                                <div class="col-sm-10">
                                    <input type="text" id="buyerNick" name="buyerNick" class="form-control"
                                           placeholder="收货人"
                                           required
                                           data-bv-notempty-message="收货人" value="${data.buyerNick}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="buyerMobile" class="col-sm-2 control-label">收货人号码</label>

                                <div class="col-sm-10">
                                    <input type="text" id="buyerMobile" name="buyerMobile" class="form-control"
                                           placeholder="收货人号码"
                                           required
                                           data-bv-notempty-message="收货人号码" value="${data.buyerMobile}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="reason" class="col-sm-2 control-label">发起原因</label>

                                <div class="col-sm-10">
                                    <textarea id="reason" name="reason" placeholder="请写明原因"
                                              class="form-control"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" id="resend_btn" class="btn btn-primary">重 发</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关 闭</button>
            </div>
        </div>

    </div>
</div>

